﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RightsTreeSet.aspx.cs" Inherits="Console_System_Rights_RightsTreeSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        //遍历被选中CheckBox元素的集合 得到Value值
        function kkk() {
            var firstlist = ""; // 第一级选中项集合，以逗号相隔。
            //jquery循环tt下的所有选中的复选框
            $('input[type="checkbox"][name="ckbnode"]').each(function (i, a) {
                if ($(this).parent().hasClass('checked') == true) {
                    if ($(this).val().length > 32) {
                        firstlist += $(this).val();
                    }
                }
            });
            var text = $("input[name='navPermissionId']");
            text.val(firstlist);
        }
    </script>
</head>
<body  onload="kkk();">
    <h2 class="contentTitle">
        设置权限</h2>
    <div class="pageContent">
        <form id="form1" method="post" action="Console/System/Rights/Rights.ashx" onsubmit="return validateCallback(this,navTabAjaxDone)">
        <input type="hidden" name="title" value="SetPermision" />
        <input type="hidden"  name="roleId"  value="<%=RoleId %>" />
        <input type="hidden" name="navPermissionId" value="1" />
        <div class="formBar">
            <ul> <li> <div class="buttonActive">  <div class="buttonContent"><button type="submit">提交</button></div>
            </div></li>
                <li><div class="button"><div class="buttonContent"> <button type="button" class="close"> 取消</button></div>
                 </div> </li>  </ul>
        </div>
        <div layoutH="100" style="overflow-y: auto; overflow-x: hidden;">
            <table layouth="138" class="table" width="100%"  >
                <thead>
                    <tr>
                        <ul   class="tree treeFolder treeCheck expand" oncheck="kkk">
                            <%=GetNavMenuList("0") %>
                        </ul>
                    </tr>
                </thead>
            </table>
        </div>        
        </form>
    </div>
</body>
</html>
